<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>项目阶段</title>
    <#include "../../commonFile/quote.ftl"/>
    <style>
        body{
            height:95%;
        }
    </style>
    <link rel="stylesheet" href="/plugins/layer/theme/default/layer.css" type="text/css"/>
</head>
<body>
<div class="container-fluid"style="height:100%;width:100%;">
    <div class="row">
        <div class="col-md-4">
            <h5>项目分类</h5>
            <div id="typeTree" class="tree"></div>
        </div>
        <div class="col-md-8">
            <div id="toolbar">
                <form id="form" class="form-inline" style="display: inline-block;">
                    <div class="form-group">
                        <input type="text" class="form-control input-sm" id="name" name="name" placeholder="请输入阶段名称">
                    </div>
                    <button type="button" class="btn btn-default btn-sm" onclick="stageTableUtil.search()">查询</button>
                </form>
                <button type="button" class="btn btn-default btn-sm" onclick="stageTableUtil.add()">新增</button>
            </div>
            <table id="stageTable"></table>
        </div>
    </div>
</div>
<#--新增项目阶段-->
<div class="modal fade" id="myModalAdd" tabindex="-1" role="dialog">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">×</span>
                </button>
                <h4 class="modal-title">编辑</h4>
            </div>
            <div class="modal-body">
                <div class="row">
                    <div class="col-xs-8 col-xs-offset-2">
                        <form id="myFormAdd"  class="form-horizontal">
                            <input type="text" id = "id" name = "id" style="display: none;"/>
                            <div class="form-group">
                                <label for="name">阶段名称</label>
                                <input type="text" class="form-control required" maxlength="100" id="stageName" name="name" placeholder="请输入阶段名称">
                            </div>
                            <div class="form-group">
                                <label for="doc_Type">文件类型</label>
                                <select class="form-control required selectpicker show-tick"  id="doc_Type" name="doc_Type">
                                    <option value=""> </option>
                                    <option value=".doc">.doc</option>
                                    <option value=".docx">.docx</option>
                                </select>
                            </div>
                            <div class="form-group">
                                <label for="remark">备注</label>
                                <textarea class="form-control" maxlength="255" rows="3" id="remark" name="remark"></textarea>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-primary" onclick="stageTableUtil.save()">保存</button>
            </div>
        </div>
    </div>
</div>
</body>
<script type="application/javascript" src="/plugins/layer/layer.js"></script>
<script type="application/javascript" src="/js/system/proStage.js"></script>
<script src="../../plugins/bootstrape-select/js/bootstrap-select.js"></script>
</html>